<template>
  <div class=""/>
</template>

<script>
export default {
    layout: 'blank',
    // 通过中间件来注销用户并跳转回主页面
    middleware: async (ctx) => {
        const { status, data } = await ctx.$axios.get('/users/exit')
        if (status === 200 && data && data.code === 0) {
            window.location.href = '/'
        }
    }
}
</script>
